package com.cc.springbootvalidatedemo.domain;

import jakarta.validation.Valid;
import lombok.Data;

@Data
public class Order {
    @Valid // 必须显式标注
    private User user; // User类需有校验注解
}
